/**
 *
 */
package com.angel.architecture.services;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.angel.architecture.BaseArchitectureTestCase;
import com.angel.architecture.services.factory.impl.ArchitectureServiceFactory;

/**
 * @author William
 *
 */
public class ArchitectureServiceLocatorTestCase extends BaseArchitectureTestCase{

	@Autowired
	private ArchitectureServiceFactory architectureServiceFactory;

	@Test
	public void testInitializeSpringApplicationContext(){
		//ArchitectureServiceFactory architectureServiceFactory = (ArchitectureServiceFactory) super.getBean("architectureServiceFactory");

		assertNotNull("Action service must be injected in architectura service factory.", architectureServiceFactory.getActionService());
		assertNotNull("Multiple service must be injected in architectura service factory.", architectureServiceFactory.getMultipleService());
		assertNotNull("Object id service must be injected in architectura service factory.", architectureServiceFactory.getObjectIdService());
		assertNotNull("Role service must be injected in architectura service factory.", architectureServiceFactory.getRoleService());
		assertNotNull("Security service must be injected in architectura service factory.", architectureServiceFactory.getSecurityService());
		assertNotNull("User service must be injected in architectura service factory.", architectureServiceFactory.getUserService());
		assertNotNull("Error message service must be injected in architectura service factory.", architectureServiceFactory.getErrorMessageService());
		assertNotNull("Language service must be injected in architectura service factory.", architectureServiceFactory.getLanguageService());
	}
}
